//
//  TPKeyboardAvoidingTableView.h
//
//  Created by Michael Tyson on 11/04/2011.
//  Copyright 2011 A Tasty Pixel. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol TPKeyboardAvoidingTableViewDelegate;
@interface TPKeyboardAvoidingTableView : UITableView
@property (nonatomic, weak) id<TPKeyboardAvoidingTableViewDelegate> keyboardDelegate;
- (BOOL)focusNextTextField;
- (void)scrollToActiveTextField;
@end


@protocol TPKeyboardAvoidingTableViewDelegate <NSObject>

@optional
- (void)TPKeyboardAvoidingTableView:(TPKeyboardAvoidingTableView *)tabview  becomeFirstResponder:(UIView *)view forRowAtIndexPath:(NSIndexPath *)indexPath;
- (void)TPKeyboardAvoidingTableView:(TPKeyboardAvoidingTableView *)tabview  resignFirstResponder:(UIView *)view forRowAtIndexPath:(NSIndexPath *)indexPath;
- (void)TPKeyboardAvoidingTableView:(TPKeyboardAvoidingTableView *)tabview  FirstResponder:(UIView *)view forRowAtIndexPath:(NSIndexPath *)indexPath Text:(NSString *)str;
@end
